import React from 'react'
import { render } from 'react-dom'
import {Router, browserHistory, hashHistory, createMemoryHistory} from 'react-router'
import routes from './modules/routes'

// 如果是hashHistory, browserHistory, createMemoryHistory, 开发都不需要跑express, webpack-dev-server即可
// let history = createMemoryHistory(location)

render((
  <Router routes={routes} history={hashHistory}/>
), document.getElementById('app'))
